/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package air_hockey.interface_grafica;

import javax.swing.*;
import java.awt.event.*;

/**
 *
 * @author cooler
 */
public class main_frame extends JFrame {

    private int SCR_WIDTH = 800,
                SCR_HEIGHT = 600;


    public main_frame() {
        this.setTitle("Air Hockey");
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        this.setSize(SCR_WIDTH, SCR_WIDTH);
        this.setLocationRelativeTo(null);
        this.setResizable(true);

//        this.addKeyListener(new KeyAdapter() {
//
//            @Override
//            public void keyPressed(KeyEvent e) {
//                if(e.getKeyCode() == KeyEvent.VK_ESCAPE){
//                    System.exit(0);
//                }
//            }
//        });
    }

    /**
     * @return the SCR_WIDTH
     */
    public int getSCR_WIDTH() {
        return SCR_WIDTH;
    }

    /**
     * @param SCR_WIDTH the SCR_WIDTH to set
     */
    public void setSCR_WIDTH(int SCR_WIDTH) {
        this.SCR_WIDTH = SCR_WIDTH;
    }

    /**
     * @return the SCR_HEIGHT
     */
    public int getSCR_HEIGHT() {
        return SCR_HEIGHT;
    }

    /**
     * @param SCR_HEIGHT the SCR_HEIGHT to set
     */
    public void setSCR_HEIGHT(int SCR_HEIGHT) {
        this.SCR_HEIGHT = SCR_HEIGHT;
    }

}
